package com.gukewen;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.function.Consumer;

/**
 * @ClassName MessageConsumerB
 * @Description
 * @Author gu
 * @Date 2025/11/4 15:14
 * @Version 1.0
 **/

@Component
public class MessageConsumerB {

    @Bean
    public Consumer<String> consumeB() {
        return msg -> System.out.println("🔵 模块B收到消息：" + msg);
    }
}
